package com.njlime.cms.repository.app;

import com.njlime.cms.entities.CommunityComment;
import com.njlime.core.helper.PageBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;
import java.util.Map;

/**
 * Created by Dean on 2017-10-10.
 */
public interface AppCommunityCommentDao extends JpaRepository<CommunityComment, Integer>,JpaSpecificationExecutor<CommunityComment> {
    int saveCommunity(CommunityComment communityComment);
    Map<String, Object> get(int id);
    PageBean list(PageBean pageBean, CommunityComment info);
    PageBean rewardList(PageBean pageBean, Integer informationID);
    void fabulousNumUpdate(Integer id, int num);
}
